remove last 4 element from an array javascript

join shbcf.ru